/**
 * @author liangxi
 * @since 2023/12/21
 */

#ifndef DESIGNPATTERN_LIGHT_H
#define DESIGNPATTERN_LIGHT_H

#include <iostream>

namespace CommandSR {

    /**
     * 在餐厅中相当于厨师，知道具体应该怎么做
     */
    class Light {
    public:
        Light() = default;

        void on() {
            std::cout << "Light is on" << std::endl;
        }

        void off() {
            std::cout << "Light is off" << std::endl;
        }

    };

} // CommandSR

#endif //DESIGNPATTERN_LIGHT_H
